#include "util.h"

Point3D trans(const QVector3D& val){
    return Point3D(val.x(), val.y(), val.z());
}

QVector3D trans(const Point3D& val){
    return QVector3D(val.x(), val.y(), val.z());
}

std::vector<Point3D> trans(const QVector<QVector3D>& val)
{
    std::vector<Point3D> ret;
    for(int i = 0; i < val.size(); ++i)
    {
        ret.push_back(trans(val[i]));
    }
    return ret;
}

QVector<QVector3D> trans(const std::vector<Point3D>& val)
{
    QVector<QVector3D> ret;
    for(unsigned int i = 0; i < val.size(); ++i)
    {
        ret.push_back(trans(val[i]));
    }
    return ret;
}

std::vector<int> trans(const QVector<int>& val)
{
    std::vector<int> ret;
    for(int i = 0; i < val.size(); ++i)
    {
        ret.push_back(val[i]);
    }
    return ret;
}

QVector<int> trans(const std::vector<int>& val)
{
    QVector<int> ret;
    for(unsigned int i = 0; i < val.size(); ++i)
    {
        ret.push_back(val[i]);
    }
    return ret;
}
